package com.itzhihao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itzhihao.entity.Product;
import com.itzhihao.entity.vo.ProductVo;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.PageDomain;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.List;

public interface IProductService extends IService<Product> {
    TableDataInfo getList(PageDomain pageDomain,Product product);

    ProductVo getDetail(Long id);

    boolean updateProductStatus(Product product,Integer status);

    boolean updateOrSave(Product product);

    TableDataInfo getMainList(PageDomain pageDomain, Product product);

    boolean deleteByIds(List<Long> idLongList);

    boolean deleteById(Long id);

    TableDataInfo getBackList(PageDomain pageDomain, Product product);

    Boolean decreaseStock(Long productId,Integer num);

    Boolean addStock(Long productId,Integer num);
}
